package cn.itrip.auth.service;

import cn.itrip.auth.exception.SMSException;
import cn.itrip.beans.pojo.ItripUser;
import cn.itrip.beans.vo.userinfo.ItripUserVO;
import com.fasterxml.jackson.core.JsonProcessingException;

public interface ItripUserService {
    boolean ckUsr(String name);

    boolean doRegister(ItripUserVO itripUserVO);

    boolean activate(String user);

    boolean registerByPhone(ItripUserVO itripUserVO) throws SMSException, JsonProcessingException;

    boolean validatePhone(String code, String user) throws JsonProcessingException;

    ItripUser doLogin(String name, String password);
}
